package model.log;

import empty.log.Log;
import unit.DbTool;

public class LogModel {
    public int insertLog(Log log) throws Exception{
        String logsql = "insert into log(caozuo, user, cz_time) VALUES (?,?,?);";
        return DbTool.DML(logsql,log.getCaozuo(),log.getUser(),log.getCz_time());
    }

    public int insertLogUser(Log log) throws Exception{
        String logsql = "insert into log(caozuo, user, cz_time) VALUES (?,?,now());";
        return DbTool.DML(logsql,log.getCaozuo(),log.getUser());
    }
}
